<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="${package}.modules.${functionName}.mapper.${ClassName}Mapper">

    <resultMap type="${package}.modules.${functionName}.entity.${ClassName}" id="BaseResultMap">
        <#list fieldList as field>
        <result property="${field.attrName}" column="${field.fieldName}"/>
        </#list>
    </resultMap>
    <resultMap id="ListResultMap"
               type="com.yf.exam.modules.${functionName}.dto.${ClassName}DTO"
               extends="BaseResultMap"/>

        <select id="paging" resultMap="ListResultMap">
            SELECT * FROM ${tableName}
            <where>
                <if test="query!=null">

                </if>
            </where>
        </select>
</mapper>